@item-length: 120px;
@i-font-size: 40px;

.flex-header {
    font-size: 15px;
    font-weight: 600;
    color: #333;

    .header-item {
        display: inline-block;
        margin: 2px 20px;
    }
}

.flex {
    margin: 5px 0;
    height: @item-length;
    background: #fefefe;
    padding: 8px 5px;
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 0 0 2px #eaeaea;
    margin-bottom: 30px;

    .prev {
        position: absolute;
        left: 0;
        top: 0;
        width: 30px;
        height: 100%;
        padding-left: 2px;
    }

    .next {
        position: absolute;
        right: 0;
        top: 0;
        width: 30px;
        height: 100%;
        padding-right: 2px;
    }

    .prev i,
    .next i {
        font-size: @i-font-size;
        margin-top: calc((@item-length - @i-font-size) / 2);
        color: #90dbec;

        &:hover {
            color: #17a2b8;
        }
    }

    .prev,
    .next {
        &:hover i {
            color: #17a2b8;
        }
    }

    .flex-pipe {
        width: auto;
        padding: 0 26px;
        height: 100%;
        overflow: hidden;
        display: flex;
    }

    .tfinish-component {
        background-color: #34bfa3 !important;
    }

    .tflex-component {
        align-items: center;
        transition: flex 0.5s, filter 0.2s, transform 0.2s;
        background-size: cover;
        background-position: center;
        flex: 1;
        background-color: #f3f3f3;
        margin: 2px 6px;
        padding: 10px;
        // border-radius: 5px;
        //text-align: center;
        align-items: center; //子元素垂直居中
        display: -webkit-flex;

        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;

        .component-context {
            width: 100%;
        }

        .component__title {
            font-size: 1rem;
            font-weight: 600;
            color: #454545;
            text-align: center;
        }

        .component__role {
            margin-top: 8px;
            color: #666;
        }

        .component__type {
            color: #666;
        }
    }

    .tcomponent-active {
        //flex-grow: 1.5 !important;
        //filter: blur(0);

        box-shadow: inset 0 0 0 2px #34bfa3;
    }

    /*CSS伪类用法*/

    .tfinish-component div:before {
        position: absolute;
        top: 24%;
        background: #34bfa3;
        content: '';
        height: 3px;
        //width: 14%;
        width: 8.7% !important;
        margin-left: -3%;
    }
    .unfinish-component div:before {
        position: absolute;
        top: 24%;
        background: #f3f3f3;
        content: '';
        height: 3px;
        width: 8.7% !important;
        margin-left: -5.6%;
    }
    .timeline .ng-star-inserted {
        width: 7%;
    }
}
